package com.itheima.mall.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("ums_menu")
public class Menu {

    private Long id;
    private Long parentId;
    private Date createTime;
    private String title;
    private Long level;
    private Long sort;
    private String name;
    private String icon;
    private Long hidden;

    @TableField(exist = false)
    private List<Menu> children;

}
